import service from '@/utils/request'

// @Tags ServiceStationArticle
// @Summary 创建服务站文章
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.ServiceStationArticle true "创建服务站文章"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /serviceStationArticle/createServiceStationArticle [post]
export const createServiceStationArticle = (data) => {
  return service({
    url: '/serviceStationArticle/createServiceStationArticle',
    method: 'post',
    data
  })
}

// @Tags ServiceStationArticle
// @Summary 删除服务站文章
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.ServiceStationArticle true "删除服务站文章"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /serviceStationArticle/deleteServiceStationArticle [delete]
export const deleteServiceStationArticle = (data) => {
  return service({
    url: '/serviceStationArticle/deleteServiceStationArticle',
    method: 'delete',
    data
  })
}

// @Tags ServiceStationArticle
// @Summary 批量删除服务站文章
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除服务站文章"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /serviceStationArticle/deleteServiceStationArticle [delete]
export const deleteServiceStationArticleByIds = (data) => {
  return service({
    url: '/serviceStationArticle/deleteServiceStationArticleByIds',
    method: 'delete',
    data
  })
}

// @Tags ServiceStationArticle
// @Summary 更新服务站文章
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.ServiceStationArticle true "更新服务站文章"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /serviceStationArticle/updateServiceStationArticle [put]
export const updateServiceStationArticle = (data) => {
  return service({
    url: '/serviceStationArticle/updateServiceStationArticle',
    method: 'put',
    data
  })
}

// @Tags ServiceStationArticle
// @Summary 用id查询服务站文章
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.ServiceStationArticle true "用id查询服务站文章"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /serviceStationArticle/findServiceStationArticle [get]
export const findServiceStationArticle = (params) => {
  return service({
    url: '/serviceStationArticle/findServiceStationArticle',
    method: 'get',
    params
  })
}

// @Tags ServiceStationArticle
// @Summary 分页获取服务站文章列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取服务站文章列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /serviceStationArticle/getServiceStationArticleList [get]
export const getServiceStationArticleList = (params) => {
  return service({
    url: '/serviceStationArticle/getServiceStationArticleList',
    method: 'get',
    params
  })
}


export const getReadList = (params) => {
  return service({
    url: '/serviceStationArticle/getReadList',
    method: 'get',
    params
  })
}